<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div style="margin-bottom: 15px;" class="pane" id="contents">
    <div class="pane form-signup">
        <h2 class="title">登录Dressing Social</h2>
        <form:form modelAttribute="user" method="post" action="${pageContext.request.contextPath}/login" 
                   class="login-form">
            <input type="hidden" value="" name="return_to">
            <fieldset>
                <c:if test="${!empty message}">
                    <div class="error-guide">
                        <div class="_error_guide">
                            <span class="error">${message}</span>
                        </div>
                    </div>
                </c:if>
                <label for="pixiv_id">输入注册邮箱</label>
                <form:errors path="email" cssClass="error" />
                <form:input path="email"
                            type="text" autofocus="" 
                            value="" 
                            maxlength="255" 
                            class="form-login-input" />
                <label for="pass">密码</label>
                <form:errors path="password" cssClass="error" />
                <form:password value="" path="password" maxlength="32" 
                               class="form-login-input" />
                <label>
                    <input type="checkbox" checked="checked" value="1" name="skip" />
                    下次自动登录
                </label>
                <button value="登录" type="submit" style="font-size:18px; margin:10px 0;padding:4px 50px;" id="login_submit">
                    登录
                </button>
            </fieldset>
        </form:form>
    </div><!-- /form-signup -->

    <div id="registerRow">

        <div class="note">
            <h1 class="login_text" style="margin-top: 0;">没有账户？</h1>
            <p style="margin:10px 0 0; text-align:center;">
                <a class="_button-large" href="${pageContext.request.contextPath}/users/new">立即注册</a>
            </p>
        </div>

    </div>
</div>
<!-- /#contents -->

